package io;

import java.io.Serializable;
import java.util.Arrays;

public class Student implements Serializable {
  private  String name;
  private  int age;
  private String gender;
  private  transient String[] otherInfo;

  public Student(){

  }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", oherInfo=" + Arrays.toString(otherInfo) +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String[] getOherInfo() {
        return otherInfo;
    }

    public void setOherInfo(String[] oherInfo) {
        this.otherInfo = oherInfo;
    }

    public Student(String name, int age, String gender, String[] oherInfo) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.otherInfo = oherInfo;
    }
}
